module.exports = {
  // 要被 mockjs 拦截的请求集
  requests: [
    {
      type: 'GET',
      url: '/tabData',
      // 数据模板，请参照 mockjs
      tpl: {
        code: 200,
        message: '获取订单列表成功',
        'tabData|10-200': [
          {
            orderID: '@natural(10000)',
            goodsList: {
              'goodsList|1-6': [
                {
                  'goodsName|1': [
                    '猪肉800g',
                    '羊肉800g',
                    '西瓜800g',
                    '桃子800g',
                    '苹果800g',
                    '辣条800g'
                  ]
                }
              ]
            },
            date: '@date("yyyy-MM-dd HH:mm")',
            areaName: {
              'areaName|1': ['self', 'sameCity', 'crossCity']
            },
            info: {
              phone: /^1(3|4|5|6|7|8|9)\d{9}$/,
              name: '@cname()',
              address: '@county(true)'
            },
            status: {
              'status|1': [
                'paid',
                'raised',
                'delivered',
                'received',
                'refund',
                'cancel'
              ]
            },
            price: '@float(10, 1000, 2, 2)'
          }
        ]
      }
    }
  ]
}
